load("@rules_cc//cc:defs.bzl", "cc_test")

cc_test(
    name = "tests",
    srcs = glob(
        [
            "unit/*.cpp",
            "unit/*.h",
        ],
        exclude = ["unit/test_async_client_v3.cpp"],  # Needs Cppunit
    ),
    local_defines = ["TEST_EXTERNAL_SERVER"],
    tags = ["requires-network"],
    deps = [
        "@catch2",
        "@paho.mqtt.cpp",
    ],
)
